<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta name="description" content="Responsive Admin Template" />
    <meta name="author" content="SmartUniversity" />
    <title>Spice Hotel | Bootstrap 4 Admin Dashboard Template + UI Kit</title>
    <!-- google font -->
    <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet" type="text/css" />
	<!-- icons -->
    <link th:href="@{/assets/plugins/simple-line-icons/simple-line-icons.min.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/assets/plugins/font-awesome/css/font-awesome.min.css}" rel="stylesheet" type="text/css"/>
	<!--bootstrap -->
	<link th:href="@{/assets/plugins/bootstrap/css/bootstrap.min.css}" rel="stylesheet" type="text/css" />
    <!-- Material Design Lite CSS -->
	<link rel="stylesheet" th:href="@{/assets/plugins/material/material.min.css}">
	<link rel="stylesheet" th:href="@{/assets/css/material_style.css}">
	<!-- data tables -->
    <link th:href="@{/assets/plugins/datatables/plugins/bootstrap/dataTables.bootstrap4.min.css}" rel="stylesheet" type="text/css"/>
	<!-- animation -->
	<link th:href="@{/assets/css/pages/animate_page.css}" rel="stylesheet">
	<!-- Template Styles -->
    <link th:href="@{/assets/css/style.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/assets/css/plugins.min.css}" rel="stylesheet" type="text/css" />
    <link th:href="@{/assets/css/responsive.css}" rel="stylesheet" type="text/css" />
	<link th:href="@{/assets/css/theme-color.css}" rel="stylesheet" type="text/css" />
	<!-- favicon -->
    <link rel="shortcut icon" th:href="@{/assets/img/favicon.ico}" />
</head>
<!-- END HEAD -->
<body class="page-header-fixed sidemenu-closed-hidelogo page-content-white page-md header-white dark-sidebar-color logo-dark">
    <div class="page-wrapper">
        <!-- start header -->
		<div th:replace="~{commons::headnavbar}"></div>
        <!-- end header -->
        <!-- start page container -->
        <div class="page-container">
 			<!-- start sidebar menu -->
			<div th:replace="~{commons::sidebar(active='all_staffs',open='staff')}"></div>
			 <!-- end sidebar menu -->
			<!-- start page content -->
            <div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title">All Staffs</div>
                            </div>
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="../index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="">Staffs</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li class="active">All Staffs</li>
                            </ol>
                        </div>
                    </div>
					<ul class="nav nav-pills nav-pills-rose">
						<li class="nav-item tab-all"><a class="nav-link active show"
							href="#tab1" data-toggle="tab">列表视图</a></li>

					</ul>

					<div class="tab-content tab-space">
	                   <div class="tab-pane active show" id="tab1">
						 <div class="row">
		                    <div class="col-md-12">
	                            <div class="card-box">
	                                <div class="card-body ">
	                                  <div class="table-scrollable">
	                                    <table class="table table-hover table-checkable order-column full-width" id="example4">
	                                        <thead>
	                                            <tr>
	                                            	<th class="center">员工编号</th>
	                                                <th class="center"> 姓名 </th>
	                                                <th class="center"> 性别 </th>
	                                                <th class="center"> 职位 </th>
	                                                <th class="center"> 电话 </th>
	                                                <th class="center"> 邮件 </th>
	                                                <th class="center"> 地址 </th>
	                                                <th class="center">入职时间</th>
	                                                <th class="center"> 操作 </th>
	                                            </tr>
	                                        </thead>
	                                        <tbody>
												<tr class="odd gradeX" th:each="staff:${allstaffs}">
													<td class="center" th:text="${staff.id}"></td>
													<td class="center" th:text="${staff.sname}"></td>
													<td class="center" th:text="${staff.gender==1?'男':'女'}"></td>
													<td class="center" th:text="${staff.designation}"></td>
													<td class="center" th:text="${staff.phone}"></td>
													<td class="center" th:text="${staff.email}"></td>
													<td class="center" th:text="${staff.address}"></td>
													<td class="center" th:text="${staff.joindate}"></td>
													<td class="center">
														<a th:href="@{/staff/}+${staff.id}" class="btn btn-tbl-edit btn-xs">
															<i class="fa fa-pencil"></i>
														</a>
														<a class="btn btn-tbl-delete btn-xs" id="deleteBtn" th:href="@{/staff/deleteStaff/}+${staff.id}">
															<i class="fa fa-trash-o "></i>
														</a>
													</td>
												</tr>

											</tbody>
	                                    </table>
	                                  </div>
	                                </div>
	                            </div>
		                      </div>
		                  </div>
	                    </div>

					</div>
                </div>
            </div>
            <!-- end page content -->


			<div th:replace="~{commons::settingtools}"></div>


        </div>
        <!-- end page container -->
        <!-- start footer -->
       <div th:replace="~{commons::footer}"></div>
        <!-- end footer -->
    </div>
    <!-- start js include path -->
    <script th:src="@{/assets/plugins/jquery/jquery.min.js}" ></script>
    <script th:src="@{/assets/plugins/popper/popper.min.js}" ></script>
    <script th:src="@{/assets/plugins/jquery-blockui/jquery.blockui.min.js}" ></script>
	<script th:src="@{/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
    <!-- bootstrap -->
    <script th:src="@{/assets/plugins/bootstrap/js/bootstrap.min.js}" ></script>
    <!-- Common js-->
	<script th:src="@{/assets/js/app.js}" ></script>
    <script th:src="@{/assets/js/layout.js}" ></script>
	<script th:src="@{/assets/js/theme-color.js}" ></script>
	<!-- data tables -->
    <script th:src="@{/assets/plugins/datatables/jquery.dataTables.min.js}" ></script>
 	<script th:src="@{/assets/plugins/datatables/plugins/bootstrap/dataTables.bootstrap4.min.js}" ></script>
 	<script th:src="@{/assets/js/pages/table/table_data.js}" ></script>
	<!-- Material -->
	<script th:src="@{/assets/plugins/material/material.min.js}"></script>
	<!-- animation -->
	<script th:src="@{/assets/js/pages/ui/animations.js}" ></script>
    <!-- end js include path -->
</body>
</html>